/*
 * $Id: LocaleNavigationMenu.java 134 2009-07-13 10:02:12Z donbeave $
 */

package labour.manager.client.widget.menu;

import com.extjs.gxt.ui.client.widget.menu.Menu;
import com.extjs.gxt.ui.client.widget.menu.MenuItem;
import com.extjs.gxt.ui.client.widget.menu.SeparatorMenuItem;

public class LocaleNavigationMenu extends Menu {

  private MenuItem refreshItem;
  private CreateDocumentMenuItem createItem;
  private MenuItem propertiesItem;
  private MenuItem useByDefaultItem;

  public LocaleNavigationMenu() {
    refreshItem = new MenuItem("Refresh");
    createItem = new CreateDocumentMenuItem("Create");
    propertiesItem = new MenuItem("Properties");
    useByDefaultItem = new MenuItem("Use by default");

    createItem.setSubMenu(new CreateDocumentMenu());

    add(refreshItem);
    add(useByDefaultItem);
    add(new SeparatorMenuItem());
    add(createItem);
    add(new SeparatorMenuItem());
    add(propertiesItem);
  }

  public CreateDocumentMenuItem getCreateItem() {
    return createItem;
  }

  public MenuItem getRefreshItem() {
    return refreshItem;
  }

  public MenuItem getPropertiesItem() {
    return propertiesItem;
  }

  public MenuItem getUseByDefaultItem() {
    return useByDefaultItem;
  }

}
